Skip to main content

Create Retail User

πŸ‘€βž‘οΈπŸŒ Create Retail User Request (Client β†’ WCF REST Service)​

This message is sent by the Client to the WCF REST Service for creating a Web Retail User in ODIN and WebAdmin. The Service will validate the request based on the parameters sent and upon successful creation of user will send the response back in xml format. In case of failure it will send a failure response.

πŸ“˜ Field Details​

TagField NameReq’dData Type (Max)Comment
63Message VersionYString (10)Fixed Value – FT1.0
64Message TypeYIntegerFixed Value – 301
67Reserved PG Dealer IdYString (10)Reserved PG Dealer Id
4Session IdYString (100)Must be same as Session Id received in Logon Response
201User IdYString (10)New Web Retail User Id
202Group IdYString (10)Group Id of the user
203Manager IdYString (50)Determines ODIN Manager for user creation. Must match Manager IP/DNS in WebAdmin under Configuration β†’ Odin Manager Settings β†’ Manager IP.
Note: Optional for non-Odin users
204Family IdOString (10)Family Id of the user
205Parent IdOString (10)Parent Id of the user
206NameYString (40)First & Last Name separated by space
207PasswordOString (24)Encrypted using AES. Decrypted password: 6–12 characters, alphanumeric, allowed special characters: < > . : ; ~ ! @ # $ % ^ * ( ) + - { } \ / [ ]
208User CategoryYShortCategory Id:
2 – Retail User
4 – Web Retail User
3 – Institutional User
5 – Institutional Web User
Note: Mandatory even for non-Odin users
209Address Line 1OString (40)Address Line 1
210Address Line 2OString (40)Address Line 2
211CityOString (40)City
212Pin codeOString (6)Pin code
213Telephone NoOString (20)Telephone No
214Mobile NoOString (14)Mobile No
215Fax NoOString (20)Fax No
216Email IdOString (39)Email Id
217Pan CardOString (10)Pan Card
218User StatusYChar (1)A – Active, S – Suspended, I – Inactive
219Surveillance Auto or ManualOShort0 – Auto, 1 – Manual
220Trading AllowedYString (100)Comma-separated Segment IDs. Optional for non-Odin users
221Market Data AllowedYString (100)Comma-separated Segment IDs. Optional for non-Odin users
222Login AllowedYString (100)Comma-separated Segment IDs. Optional for non-Odin users
223Login TypeYStringComma-separated Product IDs:
DIET – 1
ODIN AERO – 13
API_WEB (IBT-EX) – 16
API_MOBILE (MOBILE EX) – 17
BREEZE – 20
ODIN_WAVE_MOB (Wave Mobile) – 23
Optional for non-Odin users
224Bank Details DataOString (800)Multiple bank accounts separated by $. Format:
BankId,BranchName,BranchCity,AccountNo,CustomerId,AccountType,IsDefaultBank,PGProduct,IFSCCode,$...
225DP DetailsOString (800)Multiple Demat accounts separated by $. Format:
DP Id,Client Beneficiary Id,Holding Type,Default DP,Guardian First Name,Guardian Last Name,Guardian DOB,Guardian PAN,Second Holder First Name,Second Holder Last Name,Second Holder DOB,Second Holder PAN,Third Holder First Name,Third Holder Last Name,Third Holder DOB,Third Holder PAN,Remarks
226Group Admin IdOString (10)Group Admin Id
227Unique Reference NumberOString (20)Unique reference number generated by Third Party Application
228General Settings Template NameYString (50)Pass GST template if modifying user’s default GST template
229First Holder DOBOString (10)DOB in DD-MM-YYYY format. Mandatory for DP details (Tag-225) & MF UCC (Tag-232). Also used for Incorporation Date if Tag-238 = 1
230Odin User TypeOShort (1)0 – Non ODIN User
1 – ODIN User
Default = 1
231Product AllowedOString (50)Comma-separated Product IDs:
2 – Mutual Fund
3 – IPO
4 – PMS
14 – BOND
32 – 3 in 1 Account
232MF UCC DetailsOString (1000)Exchange-wise UCC details mapping, comma-separated:
BSEUCC,NSEUCC1,NSEUCC2,NSEUCC3,ModeAllowed,BSETransactionMode,BSE UCC Mode,Holding Mode,MF 2ndApp First Name,...
Mandatory if Product allowed for MF
233GenderMString (2)M – Male
F – Female
NA – Firm Account
234Client TypeOString (10)Mandatory if Product allowed for IPO, BONDS, PMS
235Tax StatusOString (10)Mandatory if Product allowed for MF, BONDS, PMS
236OccupationOString (10)Mandatory if Product allowed for MF, BONDS, PMS
237Form60OShort (1)Y – Yes
N – No
238Incorporation Date FlagOShort (1)Pass 1 if Incorporation date needs update for Firm. Fill date in Tag-229
239Father/Husband NameOString (50)Father/Husband Name
240Global FlagOShort0 – Global not considered
1 – Global considered
Default = 0
241Number of Orders Per SecondOLongDefault = -1
Max = 999
242Max broadcast scrip allowedOLongDefault = -1
Max = 99999999
243Branch NameOString (15)Branch Name
244POAOShort0 – POA
2 – Non-POA
Default = 0
247Max GTD AllowedOLongIf value = -1, GTD checkbox unchecked
Max = 9999
248Product TypeOShort1 – Margin/IntraDay
2 – Delivery/CarryForward
4 – MarginPlus
8 – MTF
64 – PTST
999Check Sum ValueYIntegerChecksum based on entire string. Must be last tag in request

Example String for generating check sum​

63=FT1.0|64=301|67=RESERVEDPG|4=0x01C6694EA406031D48B2AA88FB8CCA|201=WEBRET1|202=HO|203=10.0.10.0|204=|205=|206=|207=addExxvEtd4sTPOJ078asd|208=4|209=Address Line 1|210=Address Line 2|211=Mumbai|212=400001|213=|214=9874563210|215=|216=aaa@bbb.com|217=AAAAA1234A|218=A|219=1|220=1,2,3,4,5|221=1,2,3,4,5|222=1,2,3,4,5|223=1,8,9|224=UTI,Kandivali,Mumbai,02145214521423,1111222,CA,0,NSE EQUITIES$HDFC,Andheri,Mumbai,04874562102145,99998888,CA,0,NSE EQUITIES|225=IN300940,12345678,Single,0,,,,,,,,,,,,,NA|226=|227=11071700121312014520|228=USERMIG|229=21-01-1995|230=1|231=2,3,4,14|232=BSEUCC,NSEUCC1,NSEUCC2,,7,2,,JO,Hardik,Kothiya,QWERT1212A,1,T1,T1,HHHHH1234H,1,G1,G2,HHHHH1111A,31-08-1991,1,MUMBAI,N1,N2,31-08-1993,Self,Surat,AM,,AM|233=M|234=IND|235=1|236=1|237=N|238=|239=HardikKumar|240=1|241=3|242=15|243=MUMBAI|244=0|247=10|248=1

Example String for creating retail user​

Below is the String to be passed for creating retail user along with checksum value

CreateRetailUser
("63=FT1.0|64=301|67=RESERVEDPG|4=0x01C6694EA406031D48B2AA88FB8CCA|201=WEBRET1|202=HO|203=10.0.10.0|204=|205=|206=|207=addExxvEtd4sTPOJ078asd|208=4|209=Address Line 1|210=Address Line 2|211=Mumbai|212=400001|213=|214=9874563210|215=|216=aaa@bbb.com|217=AAAAA1234A|218=A|219=1|220=1,2,3,4,5|221=1,2,3,4,5|222=1,2,3,4,5|223=1,8,9|224=UTI,Kandivali,Mumbai,02145214521423,1111222,CA,0,NSE EQUITIES$HDFC,Andheri,Mumbai,04874562102145,99998888,CA,0,NSE EQUITIES|225=IN300940,12345678,Single,0,,,,,,,,,,,,,NA|226=|227=11071700121312014520|228=USERMIG|229=21-01-1995|230=1|231=2,3,4,14|232=BSEUCC,NSEUCC1,NSEUCC2,,7,2,,JO,Hardik,Kothiya,QWERT1212A,1,T1,T1,HHHHH1234H,1,G1,G2,HHHHH1111A,31-08-1991,1,MUMBAI,N1,N2,31-08-1993,Self,Surat,AM,,AM|233=M|234=IND|235=1|236=1|237=N|238=|239=HardikKumar|240=1|241=3|242=15|243=MUMBAI|244=0|247=10|248=1|999=145")

Notes​

Note 1​

Post successful user creation in ODIN, the web service shall assign the following default templates automatically so that clients can start trading seamlessly.
Such default templates shall be assigned if they are available in the ODIN Database.
Members should make provision in their ODIN Admin for at least one standard default template for all such templates that need to be assigned to new users to onboard and trade seamlessly.

System shall mark newly created users with Margin/Prime as ON by default, same as existing functionality in ODIN User Maintenance window.

List of Templates:

  • Default Surveillance Template
  • Default CRP Template
  • Default User-Privileges Template
  • Default Client Facility Template
  • Default Authentication Template
  • Default Quantity and Value Limit Template
  • Default News Category Template
  • Default Brokerage Template
  • Default Auto Square Off %

Note 2​

Same method can be used to convert Non-Odin user to ODIN User.

Note 3​

All API users should refrain from using the special characters unless explicitly mentioned in a TAG:

  • |
  • $
  • =
  • , (Comma)
  • > (Greater than)
  • < (Less than)

πŸ¦πŸ“„ Bank Details Data​

Field NameReq’dData Type (Max)Comment
Bank IdMString (20)Bank Id of the user
Bank Branch NameOString (40)Bank Branch Name of the respective Bank Id
Bank Branch CityOString (35)Bank Branch City of the respective Bank Id
Bank Account NoMString (20)Bank Account Number of the respective Bank Id
Bank Customer IdOString (10)Bank Customer Id of the respective Bank Id
Bank Account TypeMString (3)Bank Account Type. Allowed values: CA, SB, NRE, NRO
Is Default BankOInteger1 if Default Bank, else 0
PG ProductOString (100)Name of the PG Product to be mapped to the Bank
IFSC CodeOString (11)Bank IFSC code

πŸ“ŠπŸ“„ DP Details Data​

Field NameReq’dData Type (Max)Comment
DP IdMString (8)DP Id
Client Beneficiary IdMString (16)Client Beneficiary Id
Holding TypeMString (35)Holding Type:
1 – 1st Holder
2 – Joint Holder 1+1
3 – Joint Holder 1+2
Default DPOChar (1)Y = Yes, N = No
Guardian First NameOString (25)Applicable if First Holder is Minor
Guardian Last NameOString (25)Applicable if First Holder is Minor
Guardian DOBOString (10)DOB in DD-MM-YYYY format (Applicable if First Holder is Minor)
Guardian PANOString (10)Applicable if First Holder is Minor
Second Holder First NameOString (25)Second Holder First Name
Second Holder Last NameOString (25)Second Holder Last Name
Second Holder DOBOString (10)DOB in DD-MM-YYYY format
Second Holder PANOString (10)Second Holder PAN
Third Holder First NameOString (25)Third Holder First Name
Third Holder Last NameOString (25)Third Holder Last Name
Third Holder DOBOString (10)DOB in DD-MM-YYYY format
Third Holder PANOString (10)Third Holder PAN
RemarksOString (25)Remarks

πŸ“ˆπŸ—‚οΈ List of Exchanges and Market Segment IDs​

The following is the list of Exchanges and their respective Market Segment IDs supported by the API:

ExchangeMarket Segment ID
NSE Cash1
NSE Derivatives2
BSE Cash3
BSE Derivatives4
MCX Futures5
NCDEX Futures7
BSE SLBM9
MSE Curr Futures11
NSECDS Futures13
MSE Cash15
MSE Derivatives16
NSE SLBM17
BSE Commodity18
NSE Commodity F&O19
NSE-OFS33
BSE-OFS25
ICEX34
BSE CDS38
Mutual Fund41

πŸ§ΎπŸ“Š MF UCC Details Data​

Field NameReq’dData Type (Max)Comment
BSE UCCOString (10)Enter BSE UCC (First Holder). Optional if NSE UCC1 is specified
NSE UCC1OString (10)Enter NSE UCC (First Holder). Optional if BSE UCC is specified
NSE UCC2OString (10)Enter NSE UCC2 (Second Holder)
NSE UCC3OString (10)Enter NSE UCC3 (Third Holder)
Mode AllowedMShortAllowed values:
1 – RTA
2 – NSE
4 – BSE
3 – RTA+NSE
5 – RTA+BSE
6 – NSE+BSE
7 – RTA+NSE+BSE
BSE Transaction ModeOString (1)Applicable if Mode Allowed for BSE:
0 – Demat
1 – Physical
2 – Both
BSE UCC ModeOShort (1)Reserved field (Pass blank for now):
0 – MFI
1 – MFD
Holding ModeMString (5)MF Holding Mode:
SI – Single
JO – Joint
AS – Anyone or Survivor
MF 2ndApp First NameOString (25)Mandatory if Holding Mode is JO or AS
MF 2nd App Last NameOString (25)Mandatory if Holding Mode is JO or AS
MF2ndAppPANNoOString (10)Mandatory if Holding Mode is JO or AS
MF 2nd Appl Form 60 StatusOShort (1)1 = Form60 Submitted
MF3rdAppFirstNameOString (25)Third Holder First Name
MF3rdAppLastNameOString (25)Third Holder Last Name
MF3rdAppPANNoOString (10)Third Holder PAN
MF3rdApplForm60StatusOShort (1)1 = Form60 Submitted
MF Guardian First NameOString (25)Mandatory if First Holder is minor & MF Allowed
MF Guardian Last NameOString (25)Mandatory if First Holder is minor & MF Allowed
MF Guardian PANNoOString (10)Mandatory if Client is minor & MF Allowed
MF Guardian DOBOString (10)Guardian DOB (DD-MM-YYYY). Must be β‰₯18 years
MF Guardian Form60 StatusOShort (1)1 = Form60 Submitted
MF Guardian AddressOString (300)Mandatory if Client is minor & MF Allowed
MF Nominee First NameOString (25)Nominee First Name
MF Nominee Last NameOString (25)Nominee Last Name
MF Nominee DOBOString (10)Nominee DOB
MF Nominee RelationOString (20)Nominee Relation
MF Nominee AddressOString (300)Nominee Address
MF Karvy Payment ModeOString (2)Mandatory if MF allowed:
AM – AutoMapping
C – Cheque
E – ECS
R – RTGS
N – NEFT
MF Karvy Payment CodeOString (11)Mandatory if MF allowed and Payment Mode is E, R, or N
MF Other RTA Payment ModeOString (10)Mandatory if MF allowed:
AM – AutoMapping
CHEQUE – Cheque

πŸ“‘πŸ“¨ Create Retail User Response (WCF REST Service β†’ Client)​

Field Details​

TagField NameReq’dComment
63Message VersionYFixed Value – FT1.0
64Message TypeYFixed Value – 302
18Response CodeY0 – Failure
1 – Success
227Unique Reference NumberOSame as the one sent in the request
19Response MessageOResponse Message

Example Responses​

βœ… Success case​

63=FT1.0|64=302|18=1|227=110717001213|19=User created successfully

❌ Failure case​

63=FT1.0|64=302|18=0|227=110717001213|19=Error occurred, kindly contact administrator

❌ Failure - Unable to connect​

63=FT1.0|64=302|18=0|227=110717001213|19=Unable to connect to the remote server

❌ Failure - Net.Net Service Down​

63=FT1.0|64=302|18=0|227=110717001213|19=Unable to Connect to ODIN Manager